package org.example;

import org.example.model.ComponentFlow;
import org.example.model.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext beans=new ClassPathXmlApplicationContext("classpath:test.xml");
        ComponentFlow flow1=(ComponentFlow)beans.getBean("flow1");
        User user = new User();
        flow1.start(user);
    }
}
